import request from '@/utils/request'

// 查询报工记录列表
export function listWorkReport(data) {
  return request({
    url: '/base/management/list?pageNum=1&pageSize=10',
    method: 'get',
    data: {
      "pageNum":data.pageNum,
      "pageSize":data.pageSize
    }
  })
}
0
// 查询报工记录详细
export function getWorkReport(id) {
  return request({
    url: '/production/WorkReport/' + id,
    method: 'get'
  })
}

// 新增报工记录
export function addWorkReport(data) {
  return request({
    url: '/production/WorkReport',
    method: 'post',
    data: data
  })
}

// 修改报工记录
export function updateWorkReport(data) {
  return request({
    url: '/production/WorkReport',
    method: 'put',
    data: data
  })
}

// 删除报工记录
export function delWorkReport(id) {
  return request({
    url: '/production/WorkReport/' + id,
    method: 'delete'
  })
}
